package com.murray.assignment.pojo;

import java.io.Serializable;

/**
 * @author Murray
 * @Date 2021/6/7
 * @Time 16:25
 */
public class Users implements Serializable {


    /**
     * ID
     */
    private Integer userId;
    /**
     * 用户名
     */
    private String uname;
    /**
     * 密码
     */
    private String upwd;
    /**
     * 移动电话
     */
    private String mobile;

    @Override
    public String toString() {
        return "Users{" +
                "userId=" + userId +
                ", uname='" + uname + '\'' +
                ", upwd='" + upwd + '\'' +
                ", mobile='" + mobile + '\'' +
                ", cart=" + cart +
                '}';
    }

    public Cart getCart() {
        return cart;
    }

    public void setCart(Cart cart) {
        this.cart = cart;
    }

    public Users(Integer userId, String uname, String upwd, String mobile, Cart cart) {
        this.userId = userId;
        this.uname = uname;
        this.upwd = upwd;
        this.mobile = mobile;
        this.cart = cart;
    }

    /**
     * 用户的购物车
     */
    private Cart cart;

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Users(Integer userId, String mobile, String uname, String upwd) {
        this.userId = userId;
        this.mobile = mobile;
        this.uname = uname;
        this.upwd = upwd;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUpwd() {
        return upwd;
    }

    public void setUpwd(String upwd) {
        this.upwd = upwd;
    }

    public Users() {
    }

    public Users(Integer userId, String uname, String upwd) {
        this.userId = userId;
        this.uname = uname;
        this.upwd = upwd;
    }


}
